// 导出防抖函数
export default (fun: any, wait: number) => {
    let timeout: any;
    return (...args: any[]) => {
        clearTimeout(timeout);
        timeout = setTimeout(() => {
            fun.apply(this, args)
        }, wait)
    }
}